<?php
/**
 * @author Mr.UBKey
 * @package XPHP
 * @version Beta
 * @copyright XWEB
 */
require_once 'XPHP/View/Result/Interface.php';
class XPHP_View_Result_Json implements XPHP_View_Result_Interface
{
	/**
	 * Dữ liệu đưa vào
	 * @var unknown_type
	 */
	public $data;
	
	public function __construct($data)
	{
		$this->data = $data;
	}
	public function ExecuteResult()
	{
		header("Content-Type: application/json; charset=UTF-8");
		echo json_encode($this->data);
	}
}